#include<stdio.h>
int main()
{
    int a,b;
	int i; 
	int m;
	scanf("%d %d %d",&a,&b,&i);
	for (m=0;m<=i;m++)
	{
	a=a+b;
	b=a+b;
    printf("%d\n%d\n",a,b);
	}
    return 0;
}
